<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
		'id' => 'volunteer-form',
        'type' => 'horizontal',
        'enableAjaxValidation'=>false,
		'enableClientValidation'=>true,
		'htmlOptions' => array('enctype' => 'multipart/form-data'),
		//'htmlOptions' => array('enableClientValidation'=>true), 
)); ?>
	<div class="legend">
		<h3>Basic Informations</h3>
	</div>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
	<?php echo $form->errorSummary($user); ?>

	<?php echo $form->textFieldRow($user,'username',array('size'=>45,'maxlength'=>45)); ?>
	
	<?php echo $form->hiddenField($user,'password',array('size'=>45,'maxlength'=>45)); ?>
	
	<!--<?php echo $form->textFieldRow($user,'roles',array('size'=>11,'maxlength'=>11)); ?>-->
	
	<?php echo $form->textFieldRow($user,'user_fname',array('size'=>45,'maxlength'=>45)); ?>
	
	<?php echo $form->textFieldRow($user,'user_lname',array('size'=>45,'maxlength'=>45)); ?>
		
	<?php echo $form->textFieldRow($user,'user_mname',array('size'=>4,'maxlength'=>4)); ?>
		
	<?php echo $form->dropDownListRow($user,'user_gender', $user->getGenderOptions(), array('prompt'=>'Select Gender..' ) ); ?>
	
	<?php echo $form->datepickerRow($user,'user_birthdate',
										array('prepend' => '<i class="icon-calendar"></i>',
											  'options'=> array('format'=>'yyyy/mm/dd',
											   					'weekStart'=>1, 
											   					'showButtonPanel'=> true,
											   					'showAnim'=> 'fold',))); ?>
	
	<?php echo $form->dropDownListRow($user,'user_marital_status', $user->getMaritalStatus(), array('prompt'=>'Select marital status..' ) ); ?>
	
	<?php echo $form->textFieldRow($user,'user_address1',array('size'=>60,'maxlength'=>255)); ?>

	<?php echo $form->textFieldRow($user,'user_address2',array('size'=>60,'maxlength'=>255)); ?>
	
	<?php echo $form->textFieldRow($user,'user_mobile',array('prepend'=>'+63')); ?>
		
	<?php echo $form->textFieldRow($user,'user_landline',array('prepend'=>'(02)')); ?>
	
	<?php echo $form->textFieldRow($user,'user_email',array('size'=>45,'maxlength'=>45)); ?>

	<?php echo $form->fileFieldRow($user,'user_photo',array('id'=>'user_photo',)); ?> 
	<a href="<?php echo Yii::app()->baseURL.'/files/images/'.$user->user_photo?>"><?php echo $user->user_photo; ?></a>	
	
	<div class="legend">
		<h3>Volunteer Details</h3>
	</div>

		<?php echo $form->textFieldRow($user,'user_code', array('placeholder'=>'year of registration')); ?>

		<?php echo $form->datepickerRow($model,'volunteer_start_date',array('options' => array('language' => 'en'),'prepend' => '<i class="icon-calendar"></i>','options'=> array('format'=>'yyyy/mm/dd'))); ?>

		<?php echo $form->textFieldRow($model,'volunteer_course',array('size'=>45,'maxlength'=>45)); ?>

		<?php echo $form->textFieldRow($model,'school',array('size'=>45,'maxlength'=>45)); ?>

		<?php echo $form->textFieldRow($model,'volunteer_religion',array('size'=>45,'maxlength'=>45)); ?>


<div class="row">
		 <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit','type'=>'info','label'=>'create','icon'=>'ok-circle white')); ?>
		 <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'reset', 'label'=>'cancel','icon'=>'remove-circle')); ?>
    </div>

<?php $this->endWidget(); ?>